//
//  ZSView.m
//  设计模式
//
//  Created by 赛 Sir on 2023/10/29.
//

#import "ZSView.h"



@implementation ZSView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLab = [[UILabel alloc] init];
        self.nameLab.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
        self.nameLab.textColor = [UIColor redColor];
        [self addSubview:self.nameLab];
        self.nameLab.userInteractionEnabled = NO;
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action: @selector(clickNameLab)];
        [self.nameLab addGestureRecognizer:tap];
    }
    return self;
}

- (void)clickNameLab {
    if(_ActionBlick) {
        _ActionBlick(@"");
    }
}

@end
